package com.imooc.miaosha.dao;

import org.apache.ibatis.annotations.*;

import com.imooc.miaosha.domain.MiaoshaUser;

import java.util.List;

@Mapper
public interface MiaoshaUserDao {

    @Select("select * from miaosha_user where id = #{id}")
    MiaoshaUser getById(@Param("id") long id);

    void insert(List<MiaoshaUser> users);

    @Update("update miaosha_user set password=#{password} where id=#{id}")
    void update(MiaoshaUser updateUser);
}
